import request from '@/utils/request'

// 获取学生列表
export function getStudentList(params){
  return request({
    url: '/system/student/list',
    method: 'get',
    params:params
  })
}
//添加学生
export function addStudent(data){
  return request({
    url: '/system/student/add',
    method: 'post',
    data:data
  })
}
//编辑学生
export function editStudent(data) {
  return request({
    url: '/system/student/edit',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data) // 手动序列化为字符串
  });
}
//删除学生
export function delStudent(data){
  return request({
    url: '/system/student/del',
    method: 'post',
    data:data
  })
}